package hcmus.fit.master.sevensea.core;

import hcmus.fit.master.sevensea.util.Size;
import android.graphics.Bitmap;
import android.graphics.Paint;

public abstract class AbstractLayer implements Sprite {
    public static Bitmap resources;
    protected Size viewSize;
    protected Bitmap source;
    protected Paint paint;

    public AbstractLayer(Size viewSize) {
        this.viewSize = viewSize;
        this.paint = new Paint();
        this.source = getSourceFromResource();
    }
    
    public abstract Bitmap getSourceFromResource();

    public Bitmap getSource() {
        return source;
    }

    public void setSource(Bitmap source) {
        this.source = source;
    }

    public Paint getPaint() {
        return paint;
    }

    public void setPaint(Paint paint) {
        this.paint = paint;
    }

    public Size getViewSize() {
        return viewSize;
    }

    public void setViewSize(Size viewSize) {
        this.viewSize = viewSize;
    }
}
